<?php
//ini komentar//
session_start();
<<<<<<< .mine
//revisi again//
=======
// ini komentar lagi
>>>>>>> .r8
?>
<html>
    <head>
        <title>.: Php Programming and Security - Brainmatics :.</title>
        <script type="text/javascript" src="js/jquery.js"></script>        
        <link href="captcha/style.css" rel="stylesheet" type="text/css">
    </head>
    <body style="margin: 0px">
        <table width="100%" height="100%" border="0">
            <tr style="background-color: #fff ;height: 50px">
                <td colspan="2" valign="middle">
                    <!-- header web -->       
                    <img src="img/logo.png"/>
                </td>
            </tr>
            <tr>
                <td style="background-color: #99ccff ;width: 170px;font-family: arial,sans-serif;font-size: 14px" 
                    valign="top">
                    <!-- sidebar -->
                    <ul style="margin-top: 10px" >
                        <li><a href="index.php">Depan</a></li>
                        <li><a href="index.php?page=input">Input Karyawan</a></li>
                        <li><a href="index.php?page=daftar">Daftar Karyawan</a></li>
                        <li><a href="page/proses_logout.php">Logout</a></li>
                    </ul>
                </td>
                <td valign="top">
                    <div style="margin: 5px;font-family: arial,sans-serif;font-size: 12px">
                        <!-- content -->
                        <?php
                        $user = $_SESSION['user'];
                        if ($user == null) {
                            include_once 'page/login.php';
                        } else {
                            $page = $_GET['page'];
                            if ($page != null) {
                                if ($page == 'home') {
                                    include_once 'page/home.php';
                                } else if ($page == 'input') {
                                    include_once 'page/input_karyawan.php';
                                } else if ($page == 'daftar') {
                                    include_once 'page/daftar_karyawan.php';
                                } else if ($page == 'simpan') {
                                    include_once 'page/simpan_karyawan.php';
                                } else {
                                    include_once 'page/home.php';
                                }
                            } else {
                                include_once 'page/home.php';
                            }
                        }
                        ?>
                    </div>
                </td>
            </tr>
            <tr style="background-color: #000000;height: 30px;color: #fff; ">
                <td colspan="2" align="center">
                    <!-- footer web -->
                    <small>Copyright &copy; Brainmatics 2013</small>
                </td>
            </tr>
        </table>
    </body>
</html>